#include<stdio.h>
#include<math.h>
int main()
{
    long n, b, i;
    while(~scanf("%d", &n))
    {
        if(n==2 || n==3)
            printf("is prime\n");
        else
        {
            b = (int)sqrt(n);
            for(i=2; i<=b; i++)
                if(n%i == 0)
                    break;
            if(i > b)
                printf("is prime\n");
            else
                printf("not prime\n");
        }
    }
    return 0;
}
